Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Data Engineer - Associate DEA-C01 All Questions

View all questions & answers for the AWS Certified Data Engineer - Associate DEA-C01 exam

Exam AWS Certified Data Engineer - Associate DEA-C01 topic 1 question 156 discussion

A data engineer needs to create an Amazon Athena table based on a subset of data from an existing Athena table named cities_world. The cities_world table contains cities that are located around the world. The data engineer must create a new table named cities_us to contain only the cities from cities_world that are located in the US.

Which SQL statement should the data engineer use to meet this requirement?

  • A. INSERT INTO cities_usa (city,state) SELECT city, state FROM cities_world WHERE country=’usa’;
  • B. MOVE city, state FROM cities_world TO cities_usa WHERE country=’usa’;
  • C. INSERT INTO cities_usa SELECT city, state FROM cities_world WHERE country=’usa’;
  • D. UPDATE cities_usa SET (city, state) = (SELECT city, state FROM cities_world WHERE country=’usa’);
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Eleftheriia
1 week, 6 days ago
Selected Answer: A
INSERT INTO cities_usa (city,state) SELECT city,state FROM cities_world WHERE country='usa'
upvoted 2 times
Eleftheriia
1 week, 6 days ago
https://docs.aws.amazon.com/athena/latest/ug/insert-into.html
upvoted 1 times
...
...
truongnguyen86
2 weeks ago
Selected Answer: A
should be A or C but C will failed if cities_usa contains more than 2 columns so specify the list of column want to insert is the good one.
upvoted 1 times
...
Parandhaman_Margan
2 weeks, 4 days ago
Answer:D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...