"how the data is accessed" and "how is the data accessed", which one is correct?

Of the two sentences “how the data is accessed” and “how is the data accessed”, which one is correct?


Solution 1:

That depends. Either could be correct, given the right context.

Do you know how the data is accessed?

How the data is accessed will be of great concern to us. We can't afford to waste CPU cycles.

or

How is the data accessed? Can you tell me?

Solution 2:

The first is a statement, the second is a question.


edit: IF you added a question mark - (?)!