Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-300 Exam - Topic 1 Question 128 Discussion

Posted by Pamella on May 01, 2026 at 11:35 AM

You have SQL Server 2019 on an Azure virtual machine that runs Windows Server 2019. The virtual machine

has 4 vCPUs and 28 GB of memory.

You scale up the virtual machine to 8 vCPUSs and 64 GB of memory.

You need to provide the lowest latency for tempdb.

What is the total number of data files that tempdb should contain?

Suggested Answer: C

The number of files depends on the number of (logical) processors on the machine. As a general rule, if the number of logical processors is less than or equal to eight, use the same number of data files as logical processors. If the number of logical processors is greater than eight, use eight data files and then if contention continues, increase the number of data files by multiples of 4 until the contention is reduced to acceptable levels or make changes to the workload/code.


https://docs.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database

Get Premium DP-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
VI
Vincent 3 days ago
I think it should be 8 data files. More vCPUs, better performance.
VI
Vilma 8 days ago
I’d go with 8 too. It’s the best practice.
EM
Emmanuel 14 days ago
8 files will give the lowest latency for sure.
KA
Karina 19 days ago
I feel 4 might be enough, but 8 is safer.
JU
Junita 24 days ago
Definitely 8. It reduces contention.
JE
Jeff 29 days ago
But with 8 vCPUs, 8 files is optimal for tempdb.
SU
Sunshine 1 month ago
I’m leaning towards 4 files. It’s a good balance.
RO
Ronnie 1 month ago
I agree, 8 files make sense for performance.
JA
Janessa 1 month ago
I think it should be 8 files. More vCPUs, more files.
KI
King 2 months ago
I’d go with 8 too. Latency is key!
TY
Tyisha 2 months ago
8 files is the best practice for scaling.
EM
Emogene 2 months ago
I feel 4 is enough. Not always need max files.
CH
Charolette 2 months ago
Definitely 8. It reduces contention.
AL
Aleisha 2 months ago
But with 8 vCPUs, 8 files makes sense for tempdb.
BL
Blossom 3 months ago
I’m leaning towards 4 files. Seems balanced.
CA
Carolann 3 months ago
I agree, 8 files for optimal performance.
WA
Wava 3 months ago
I think it should be 8 files. More vCPUs, more files.
LA
Laurel 3 months ago
Yeah, 8 makes sense, but it seems like a lot!
SH
Shelba 3 months ago
I thought it was 64 files for some reason.
SK
Skye 3 months ago
Wait, isn't 4 enough?
LU
Luisa 4 months ago
Definitely 8 files for optimal performance!
EZ
Ezekiel 4 months ago
Tempdb should have one data file per vCPU, so 8 files.
LO
Lottie 4 months ago
I think the best practice is to have multiple data files, but I can't remember if it should be equal to the number of vCPUs or something else.
AN
Annelle 5 months ago
I feel like I should know this, but I can't recall if it's 8 or if there's a cap on how many files we should actually use.
ME
Merissa 6 months ago
I'm not entirely sure, but I think I practiced a question like this where the answer was 4 files for a lower number of vCPUs.
SH
Sherill 6 months ago
I remember reading that tempdb should have one data file per vCPU for optimal performance, so I think it might be 8 files.
0/2000 characters

Save Cancel