New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce DEX-450 Exam - Topic 9 Question 103 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 103
Topic #: 9
[All DEX-450 Questions]

Which code displays the contents of a Visualforce page as a PDF?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Sherrell
3 months ago
I don't trust that. Are you sure about D?
upvoted 0 times
...
Graciela
3 months ago
Wait, is it really that simple? I thought it was more complicated!
upvoted 0 times
...
Breana
3 months ago
Nah, D is definitely the way to go.
upvoted 0 times
...
Emile
4 months ago
I think B is also a valid choice, right?
upvoted 0 times
...
Sylvie
4 months ago
Option D is correct! It uses renderAs.
upvoted 0 times
...
Silva
4 months ago
I definitely recall "apex:page" being involved, but I can't remember if it was "renderAs" or "contentType" that was the right attribute.
upvoted 0 times
...
Elbert
4 months ago
I thought "contentType" was used for PDFs too, but now I'm second-guessing myself.
upvoted 0 times
...
Kristal
4 months ago
I remember practicing a question about rendering pages, and I feel like "renderAs" was the key term.
upvoted 0 times
...
Filiberto
5 months ago
I think it's either B or D, but I'm not completely sure which one is correct.
upvoted 0 times
...
Nakisha
5 months ago
I'm a bit confused by this question. I know there are a few different ways to display a Visualforce page as a PDF, but I'm not sure which one is the most correct or standard approach. I'll have to review the Visualforce documentation again to make sure I understand the best practice.
upvoted 0 times
...
Olene
5 months ago
Okay, let me think this through. The question is asking about displaying the contents of a Visualforce page as a PDF, so we need to use the `renderAs` attribute. I'm pretty sure the correct answer is C, where the `renderAs` attribute is set to `'pdf'`.
upvoted 0 times
...
Curtis
5 months ago
Hmm, I'm not sure about this one. I know we need to use the `renderAs` attribute to display a Visualforce page as a PDF, but I can't remember the exact syntax. I'll have to double-check my notes.
upvoted 0 times
...
Ryan
5 months ago
I think the answer is B. The code snippet shows that the `contentType` attribute is set to `'application/pdf'`, which should display the Visualforce page as a PDF.
upvoted 0 times
...
Alesia
5 months ago
Okay, I think I've got a good handle on this. The key is to identify which statements are true about both switchover and failover operations.
upvoted 0 times
...
Jean
1 year ago
Haha, these options are like a box of chocolates - you never know what you're gonna get! I'm leaning towards D though.
upvoted 0 times
...
Katina
1 year ago
Ah, the age-old debate of PDF generation in Visualforce. I'll go with B - can't go wrong with good ol' contentType.
upvoted 0 times
Graciela
1 year ago
Option D is also a valid choice, using renderAs='pdf' in the apex:page tag.
upvoted 0 times
...
Geoffrey
1 year ago
I agree with B, setting the contentType to 'application/pdf'.
upvoted 0 times
...
Ciara
1 year ago
I prefer option C, using renderAs='pdf' in the apex:page tag.
upvoted 0 times
...
Yesenia
1 year ago
I think A is the way to go, using renderAs='pdf'.
upvoted 0 times
...
...
Justine
1 year ago
This is easy! You just need to use the renderAs attribute and set it to 'pdf'. C is the winner!
upvoted 0 times
...
Glory
1 year ago
Hmm, I'm torn between B and D. Definitely one of those two, but I can't decide which is better.
upvoted 0 times
...
Karon
1 year ago
I think D is the correct choice. The renderAs='application/pdf' is the key to generating the PDF.
upvoted 0 times
Irma
1 year ago
I also think option D is the correct one with renderAs='application/pdf'.
upvoted 0 times
...
Elden
1 year ago
Yes, D is the right answer for displaying Visualforce page as a PDF.
upvoted 0 times
...
Armando
1 year ago
I agree, option D with renderAs='application/pdf' is the correct choice.
upvoted 0 times
...
...
Elke
1 year ago
C looks like the right answer to me. renderAs='pdf' is the way to display the Visualforce page as a PDF.
upvoted 0 times
Paz
1 year ago
A: Great, thanks for confirming!
upvoted 0 times
...
Sherell
1 year ago
B: Yes, renderAs='pdf' is the attribute to use for displaying a Visualforce page as a PDF.
upvoted 0 times
...
Josephine
1 year ago
A: I think you're right, C is the correct answer.
upvoted 0 times
...
...
Delisa
1 year ago
I'm pretty sure it's B. The contentType='application/pdf' is the way to go.
upvoted 0 times
Simona
1 year ago
Thanks for confirming. B with contentType='application/pdf' is the correct code.
upvoted 0 times
...
Micah
1 year ago
That makes sense. B is the way to display a Visualforce page as a PDF.
upvoted 0 times
...
Ettie
1 year ago
Yes, B is the correct option. It specifies the content type as PDF.
upvoted 0 times
...
Quentin
1 year ago
I think you're right. B is the correct option.
upvoted 0 times
...
...
Lavelle
1 year ago
I'm not sure, but I think C) could also be a valid option since it mentions rendering as PDF.
upvoted 0 times
...
Stefan
1 year ago
I agree with Ulysses, D) makes sense because it specifies the rendering format as PDF.
upvoted 0 times
...
Ulysses
1 year ago
I think the answer is D)
upvoted 0 times
...

Save Cancel