AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 62


You have an Azure SQL database named DB1.

You plan to create the following four tables in DB1 by using the following code.

Table1.

Exam AZ-303 Question 62

Table2.

Exam AZ-303 Question 62

Table3.

Exam AZ-303 Question 62

Table4.

Exam AZ-303 Question 62

You need to identify which table must be created last.

What should you identify?

Show Answer
Correct Answer: B

Table2 should be created last because it contains foreign key references to both Table1 and Table3. For these references to be valid, Table1 and Table3 need to exist before Table2 is created. Table1 references Table4, so Table4 must be created before Table1. Therefore, the order of creation should start with Table4, followed by Table1 and Table3, and finally Table2.

Discussion

10 comments
Sign in to comment
xaccan
Jan 4, 2021

correct

pentium75
Jul 8, 2021

Of course the answer is correct, but this is pure SQL, has nothing to do with Azure architecture and is also not part of the official training material.

sujeetkb2021
Jan 29, 2021

Table2 is the correct answer as it references to Table 1 and Table 3 so these 2 tables should be created first

Rockers
Apr 11, 2021

Correct. Sequence of table creation will be .... Table 4 | Table 1, 3 | Table 2

mactone
Jan 16, 2021

obviously table 4. correct answer

mactone
Jan 16, 2021

sorry typo. Table 2

syu31svc
Aug 28, 2021

Table1 references Table4. Therefore Table4 must be created before Table1. Table2 references Table1 and Table3. Therefore Table1 and Table3 must be created before Table2 Answer is B

Ramkid
Feb 27, 2021

yes, logically table 2 is correct

asemaan
Sep 15, 2021

Yes the answer is correct . . . logically. But because no foreign key constraints are defined as part of the create table means you can create the tables in any order!

Ansh27febOption: B
Jan 17, 2022

Answer is Correct

KemalMOption: B
Feb 21, 2022

Table2 should be the last one