Table:
|  |  | Year Ended December 31, |  |
| --- | --- | --- | --- |
|  | 2019 | 2018 | 2017 |
|  |  | (In thousands) |  |
| Cost of revenue | $2,843 | $2,435 | $1,406 |
| Research and development | 6,532 | 4,283 | 2,968 |
| Sales and marketing | 9,069 | 8,267 | 5,481 |
| General and administrative | 10,693 | 11,476 | 9,114 |
| Total | $29,137 | $26,461 | $18,969 |
Paragraphs:
The Company recognizes these compensation costs on a straight-line basis over the requisite service period of the award, which is generally the award vesting term of four years. Forfeitures are accounted for as they occur.
Total stock-based compensation cost capitalized in inventory was less than $0.8 million in the years ended December 31, 2019, 2018 and 2017.
As of December 31, 2019, $7.8 million of unrecognized compensation cost related to stock options is expected to be recognized over a weighted-average period of 2.1 years and $41.3 million of unrecognized compensation cost related to unvested RSUs is expected to be recognized over a weighted-average period of 2.2 years. If there are any modifications or cancellations of the underlying unvested awards, the Company may be required to accelerate, increase or cancel all or a portion of the remaining unearned stock-based compensation expense.
The  following  table  sets  forth  the  stock-based  compensation  expense  resulting  from  stock  options,  RSUs,  and  the  ESPP  included  in  the  Company’s consolidated statements of operations:
Question:
Which year has the highest general and administrative expense?
Answer: Because 11,476 > 10,693 >  9,114 , the answer is: 2018.