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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
saqib839
1 month, 1 week ago
Selected Answer: A
but he said create table so neither of them is true.
upvoted 1 times
...
MerryLew
3 months, 1 week ago
Selected Answer: A
The INSERT INTO SELECT statement copies data from one table and inserts it into another table.
upvoted 1 times
...
Eleftheriia
5 months, 3 weeks ago
Selected Answer: A
INSERT INTO cities_usa (city,state) SELECT city,state FROM cities_world WHERE country='usa'
upvoted 4 times
Eleftheriia
5 months, 3 weeks ago
https://docs.aws.amazon.com/athena/latest/ug/insert-into.html
upvoted 1 times
...
...
truongnguyen86
5 months, 3 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
5 months, 4 weeks 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago